projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b3f21d
)
Remove get_tz_offset as it has no callers.
author
robertlipe
<robertlipe@gmail.com>
Sun, 27 Jan 2013 22:03:27 +0000
(22:03 +0000)
committer
robertlipe
<robertlipe@gmail.com>
Sun, 27 Jan 2013 22:03:27 +0000
(22:03 +0000)
gpsbabel/util.cc
patch
|
blob
|
history
diff --git
a/gpsbabel/util.cc
b/gpsbabel/util.cc
index 0f10277deabc7eb9a3dc0ac3eae6d73332330c2a..d845f3823e9c2d1ac9811d2fa2c0aff1a2a98177 100644
(file)
--- a/
gpsbabel/util.cc
+++ b/
gpsbabel/util.cc
@@
-828,24
+828,6
@@
si_round(double d)
}
}
-/*
- * Return a time_t suitable for adding to a time_t that is in GMT to
- * make it a local time.
- * Obsolete: to use mkgmtime instead.
- */
-signed int
-get_tz_offset(void)
-{
- time_t now = current_time();
- time_t later = mktime(gmtime(&now));
-
- if (later == -1) {
- return 0;
- } else {
- return (signed int) difftime(now, later);
- }
-}
-
/*
mkgmtime -- convert tm struct in UTC to time_t